package com.song.tools.songtest.beans.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.song.tools.core.util.TimeUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户角色关系表查询响应体
 * </p>
 *
 * @author song tools
 * @since 2024-07-09
 */
@Data
@Schema(title = "SysRoleUserQueryResponse", description = "用户角色关系表查询响应体")
public class SysRoleUserQueryResponse implements Serializable {

    @Serial
    private static final long serialVersionUID = -1;

    /**
     * 角色ID
     */
    @Schema(title = "roleId", description = "角色ID")
    private Long roleId;

    /**
     * 用户ID
     */
    @Schema(title = "userId", description = "用户ID")
    private Long userId;

    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;

    /**
     * 自增主键
     */
    @Schema(title = "id", description = "自增主键")
    private Long id;

    /**
     * 创建人用户名
     */
    @Schema(title = "createUsername", description = "创建人用户名")
    private String createUsername;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "createTime", description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人用户名
     */
    @Schema(title = "updateUsername", description = "更新人用户名")
    private String updateUsername;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "updateTime", description = "更新时间")
    private LocalDateTime updateTime;

}
